import Layout from '@/layout'

export default [
    {
        path: '/table',
        component: Layout,
        name: 'table_theme',
        meta: {
            title: '表格示例',
            icon: 'sidebar-default'
        },
        redirect: '/table/default_theme',
        children: [
            {
                path: 'default_theme',
                name: 'default_theme',
                component: () => import('@/views/curd/table/default_theme'),
                meta: {
                    title: '默认样式',
                    breadcrumb: false,
                    activeMenu: '/table/default_theme'
                }
            }
        ]
    },
    {
        path: '/curd',
        component: Layout,
        name: 'new_page',
        redirect: '/curd/new_page_1',
        meta: {
            title: '新建功能',
            icon: 'sidebar-layout'
        },
        children: [
            {
                path: 'new_page_1',
                name: 'new_page_1',
                component: () => import('@/views/curd/page/new_page_1'),
                meta: {
                    title: '第一步',
                    sidebar: false,
                    breadcrumb: true,
                    activeMenu: '/curd'
                }
            },
            {
                path: '/curd/new_page_table',
                name: 'new_page_table',
                component: () => import('@/views/curd/page/new_page_table'),
                meta: {
                    title: '第二步',
                    sidebar: false,
                    breadcrumb: true,
                    activeMenu: '/curd'
                }
            },
            {
                path: '/curd/new_page_form',
                name: 'new_page_form',
                component: () => import('@/views/curd/page/new_page_form'),
                meta: {
                    title: '第二步',
                    sidebar: false,
                    breadcrumb: true,
                    activeMenu: '/curd'
                }
            },
        ]
    }
]
